<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="layui-form">
	<fieldset  class="layui-elem-field" style="padding-top: 20px;">
		<div class="layui-form-item">
			<div class="layui-inline">
		    	<label class="layui-form-label">班级</label>
		    	<div class="layui-input-inline" style="width: 200px;">
		      		<select id="bjSel2" lay-filter="bjSel2" >
		      			<option></option>
		      			<option th:each="bj:${bjs}" th:value="${bj.id}" th:text="${bj.name}">1班</option>
		      		</select>
		    	</div>
		    </div>
		</div>
	</fieldset>
</div>
<div id="grade_list"></div>
<script type="text/javascript">
var form=layui.form;
var $=layui.$;
form.render('select');
form.on('select(bjSel2)',function(data){
	$('#grade_list').load('grade/allClassGrade',{classId:data.value});
});
</script>

</body>
</html>